package com.bodacn.storagescan;

import android.app.Application;
import android.media.Ringtone;
import android.media.RingtoneManager;
import android.net.Uri;

public class MainApplication extends Application {

    public static String AgvUrl  = "http://192.168.1.1/";
	@Override
    public void onCreate() {
            super.onCreate();            
    }
    //插放音乐;
    void playRingtone(){
        Uri notification = Uri.parse("android.resource://"+getPackageName()+"/"+R.raw.scan);
        Ringtone r = RingtoneManager.getRingtone(this, notification);
        r.play();

    }
}
